package user;

import Operation.*;

import java.util.Scanner;

public class NormalUser extends User{

    public NormalUser(String name) {
        super(name);
        this.ioPerations = new IOPeration[]{
                new ExitOperation(),
                new FindOperation(),
                new BorrowOperation(),
                new ReturnOperation()
        };
    }

    @Override
    public int menu() {
        System.out.println(name+"欢迎你");
        System.out.println("扣1查找图书");
        System.out.println("扣2借阅图书");
        System.out.println("扣3归还图书");
        System.out.println("扣0退出系统");
        Scanner sc = new Scanner(System.in);
        int choice = sc.nextInt();
        return choice;
    }
}
